package com.yunweiweishi.xuhuanpaltform.yuhuan_app.pojo;


import lombok.Data;
import org.springframework.data.annotation.TypeAlias;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Data
@Table(name = "role_menu")
public class RoleMenu {

    /**
     *  `id` bigint(20) NOT NULL,
     *   `menu_id` bigint(20) DEFAULT NULL COMMENT '菜单表id',
     *   `role_id` bigint(20) DEFAULT NULL COMMENT '角色表id',
     */
    @Id
    @GeneratedValue
    private  Long id;

    /**
     * 菜单的ID
     */
    private  Long menuId;

    /**
     * 角色的id
     */
    private  Long roleId;

}
